import { Axios } from '../axios/axios'
import qs from 'qs'
class solutionMethod extends Axios {
  // 查询解决方案
  getSolution() {
    return this.request({
      method: "GET",
      url: 'shuoyue/home/cmfSolution'
    })
  }
  // 详情
  getDetail(data) {
    return this.request({
      method: "GET",
      url: 'shuoyue/frontCmfSolution/findDetail?' + qs.stringify(data, { indices: false }),
    })
  }
  // /shuoyue/frontCmfSolution（put方法）传参：solutionId（解决方案id）
  frontCmfSolution(data) {
    return this.request({
      method: "put",
      url: 'shuoyue/frontCmfSolution?' + qs.stringify(data, { indices: false }),

    })
  }
}

export {
  solutionMethod
}
